﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Agro.Models;
using System.Data;
using Agro.Library;
using SN.Core;
using SN.Data;

namespace Agro.Services
{
    public interface IMessageService : IBaseService
    {
        DataTable GetMessageList(QueryBase query, WhereClip wclip);

        bool SaveMessage(T_Message Message, out string Msg, CurrentUser User);


        bool DeleteMessage(string ids, out string Msg);

        /// <summary>
        /// 获取当前用户未读的消息
        /// </summary>
        /// <param name="User"></param>
        /// <returns></returns>

        string GetUserReadMessage(CurrentUser User);

        /// <summary>
        /// 将消息的阅读状态改为已读
        /// </summary>
        /// <param name="id">消息id</param>
        /// <param name="User">阅读消息的用户</param> 
        void UpdateMessageStatus(string id, CurrentUser User);




    }
}
